package com.deng.leaf.core.segment.dao;


import com.deng.leaf.core.segment.model.LeafAlloc;

import java.util.List;

public interface IDAllocDao {
     List<LeafAlloc> getAllLeafAllocs();
     LeafAlloc updateMaxIdAndGetLeafAlloc(String tag);
     LeafAlloc updateMaxIdByCustomStepAndGetLeafAlloc(LeafAlloc leafAlloc);
     List<String> getAllTags();


     LeafAlloc getLeafByTag(String tag);
     /**
      * 更新MaxId等于InitValue
      * @param tag 要更新的tag
      */
     LeafAlloc updateMaxIdEqInitValueByTag(String tag);
}
